package com.rds.workflow.service.impl;

import com.rds.workflow.domain.RdaWfNodeAgentRel;
import com.rds.workflow.mapper.RdaWfNodeAgentRelMapper;
import com.rds.workflow.service.IRdaWfNodeAgentRelService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class RdaWfNodeAgentRelServiceImp implements IRdaWfNodeAgentRelService {
    @Autowired
    private RdaWfNodeAgentRelMapper rdaWfNodeAgentRelMapper;

    @Override
    public RdaWfNodeAgentRel selectRdaWfNodeAgentRelByid(Long id) {
        return rdaWfNodeAgentRelMapper.selectRdaWfNodeAgentRelByid(id);
    }

    @Override
    public List<RdaWfNodeAgentRel> selectRdaWfNodeAgentRelList(RdaWfNodeAgentRel rdaWfNodeAgentRel) {
        return rdaWfNodeAgentRelMapper.selectRdaWfNodeAgentRelList(rdaWfNodeAgentRel);
    }

    @Override
    public int insertRdaWfNodeAgentRel(RdaWfNodeAgentRel rdaWfNodeAgentRel) {
        return rdaWfNodeAgentRelMapper.insertRdaWfNodeAgentRel(rdaWfNodeAgentRel);
    }

    @Override
    public int updateRdaWfNodeAgentRel(RdaWfNodeAgentRel rdaWfNodeAgentRel) {
        return rdaWfNodeAgentRelMapper.updateRdaWfNodeAgentRel(rdaWfNodeAgentRel);
    }

    @Override
    public int deleteRdaWfNodeAgentRelByIds(Long[] ids) {
        return rdaWfNodeAgentRelMapper.deleteRdaWfNodeAgentRelByIds(ids);
    }

    @Override
    public int updateRdaWfNodeAgentRelByStateid(Long stateid, Long stateid2,Long stateid3) {
        return rdaWfNodeAgentRelMapper.updateRdaWfNodeAgentRelByStateid(stateid,stateid2, stateid3);
    }
}
